/*
 * TrayMenu.java
 * Copyright (C) 2007 Ezequiel Turovetzky
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 3
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
package ar.com.botonera.gui.systray.menu;

import java.awt.MenuItem;
import java.awt.PopupMenu;

/**
 * Men&uacute; contextual mostrado al hacer click derecho sobre el
 * &iacute;cono del &aacute;rea de notificaci&oacute;n.
 * @author <a href="mailto:tezequiel@gmail.com">Ezequiel Turovetzky</a>
 * @version 1.0
 */
public class TrayMenu extends PopupMenu {

    //~ Instance fields --------------------------------------------------------

    /** Item para mostrar la ventana */
    private MenuItem showItem;
    /** Item para ocultar la ventana */
    private MenuItem hideItem;
    /** Item para cerrar la apicacion */
    private MenuItem closeItem;

    //~ Constructors -----------------------------------------------------------

    /**
     * Crea una nueva instancia de esta clase.
     */
    public TrayMenu() {
        showItem = new ShowItem();
        hideItem = new HideItem();
        closeItem = new CloseItem();
        
        add(showItem);
        add(hideItem);
        add(closeItem);
    }

    //~ Methods ----------------------------------------------------------------

    /**
     * Devuelve el &iacute;tem para cerrar la aplicaci&oacute;n.
     * @return Item para cerrar la aplicaci&oacute;n.
     */
    public MenuItem getCloseItem() {
        return closeItem;
    }

    /**
     * Devuelve el &iacute;tem para ocultar la ventana de la aplicaci&oacute;n.
     * @return Item para ocultar la ventana de la aplicaci&oacute;n.
     */
    public MenuItem getHideItem() {
        return hideItem;
    }

    /**
     * Devuelve el &iacute;tem para mostrar la ventana de la aplicaci&oacute;n.
     * @return Item para ocultar la mostrar de la aplicaci&oacute;n.
     */
    public MenuItem getShowItem() {
        return showItem;
    }
}
